package cn.ll.po;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * CurrencyRate entity.
 * 
 * @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "currency_rate", catalog = "lldb")
public class CurrencyRate implements java.io.Serializable {

	// Fields

	private String currency;
	private String currencyDesc;
	private Float rate;
	private String remark;

	// Constructors

	/** default constructor */
	public CurrencyRate() {
	}

	/** minimal constructor */
	public CurrencyRate(String currency) {
		this.currency = currency;
	}

	/** full constructor */
	public CurrencyRate(String currency, String currencyDesc, Float rate,
			String remark) {
		this.currency = currency;
		this.currencyDesc = currencyDesc;
		this.rate = rate;
		this.remark = remark;
	}

	// Property accessors
	@Id
	@Column(name = "currency", unique = true, nullable = false, length = 50)
	public String getCurrency() {
		return this.currency;
	}

	public void setCurrency(String currency) {
		this.currency = currency;
	}

	@Column(name = "currency_desc", length = 50)
	public String getCurrencyDesc() {
		return this.currencyDesc;
	}

	public void setCurrencyDesc(String currencyDesc) {
		this.currencyDesc = currencyDesc;
	}

	@Column(name = "rate", precision = 12, scale = 0)
	public Float getRate() {
		return this.rate;
	}

	public void setRate(Float rate) {
		this.rate = rate;
	}

	@Column(name = "remark", length = 150)
	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

}